<?php

namespace app\admin\model;

use think\Db;
use think\Model;

class BaseServiceModel extends Model
{

    // 设置数据表（不含前缀）
    protected $name = 'classification';
    // 设置当前模型对应的完整数据表名称
    protected $table = 'ld_classification';

    public function __construct($data = [])
    {
        parent::__construct($data);
    }


    public function findAdmin($uid){
        $querty = Db::name('adminuser')->where('id',$uid)->find();
        return $querty;
    }
}